<?PHP 
 //error_reporting( 0 );
$reqlevel = 1; 
require_once("../domain/Signup.php");
require_once("../services/SignupService.php");
require_once("../domain/Log.php");
require_once("../services/LogService.php");
require_once("../domain/AccessPage.php");
require_once("../services/AccessPageService.php");
require_once("../domain/Access.php");
require_once("../services/AccessService.php");
require_once("../domain/Module.php");
require_once("../services/ModuleService.php");
require_once("../lib/Pagination.php");
include("membersonly.inc.php");
$sesid = $_SESSION["sesid"];
$time_out_minutes = $opt_logout_time / 60;

if ($show == "config") {
	if ($view == "edit") {
		if ($info_user_level < "5" AND $_GET["uid"] == "1") { 
		header ("Location: in.php?e=1");
		die();		

		}
	}
}
if ($info_user_level < "5" AND $user_id == "1") { $show_edit = ""; } else { $show_edit = "<a href='in.php?show=config&view=edit&uid=$user_id'><img src='../g/ico/user_edit.png'></a>"; }



include "inc/header.php"; 
include "inc/left_ini.php"; 
include "inc/right_ini.php";
include "inc/middle_menu.php";

if ($show == "") { include "inc/middle_content.php"; }
if ($show == "profile") { include "inc/profile.php"; } 
if ($show == "config") { include "inc/config.php"; } 
if ($show == "logs") { include "inc/logs.php"; }

if ($show == "mod") { 

	$get_module = "SELECT * FROM `".$DBprefix."modules` WHERE `mod_id` = '$modid'";  
	$exexute_get_module = mysql_query($get_module); 

	while ($module = mysql_fetch_array($exexute_get_module)){

	$mod_id = $module["mod_id"];
	$mod_name = $module["mod_name"];
	$mod_location = $module["mod_location"];

	}

	include "inc/modules/$mod_location"; 
}
?>


		


</div>
<div id="stopka">
		<div class="footer"><a href="<?PHP echo $conf_weburl; ?>">home</a>  |  <a href="javascript:history.go(-1)">back</a>  |  <a href="#top">top</a></div>
</div>
<script language="JavaScript" type="text/javascript" src="../g/j/tooltip.js"></script>
</body>
</html>
